]> dgit.raspbian.org Git - gnome-shell.git/commit
dateMenu: Do a better job at size freezing while browsing dates
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 26 Feb 2017 13:37:51 +0000 (14:37 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 27 Feb 2017 20:23:48 +0000 (21:23 +0100)
commit4b166dcc79fe293cc6554a366e3c7d80e1884f63
tree1550b3ca5ab8e3d3a925a36c2dfdda621fbd5fca
parent796fdca5c5277de7f33b2026ba7684bb19e20d48
dateMenu: Do a better job at size freezing while browsing dates

In order to avoid distracting popup size changes while browsing
other dates, we freeze the size to the last size request. However
in case of more complex size negotiations - wrapping or ellipsizing
labels, scrollable elements etc. - there's a chance of stray calls
to get_preferred_width/height() that are not used for the actual
allocation. If such a call happens to be the last size request
before the layout is frozen, the saved size will be wrong. To fix
this, save the allocated size rather than the requested one.

https://bugzilla.gnome.org/show_bug.cgi?id=754031
js/ui/dateMenu.js